<?php
session_start();

if(isset($_POST['submit'])){
    $month = $_POST['ootmMonth'];
    $year = $_POST['ootmYear'];
    $name = $_POST['ootmName'];
    $desc = $_POST['ootmDesc'];
    
    include 'DBLibrary/config.php';
    include 'DBLibrary/openDB.php';

    mysql_select_db("rotaract");
    
    $query = "INSERT INTO `rotaract`.`ootm` (`month`, `year`, `name`, `desc`) VALUES ('$month', '$year', '$name', '$desc');";
    $result = mysql_query($query);
    
     $confirm = 'Addition successful!';
    
}
?>
